#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable : 4996)
#pragma warning(disable : 6031)



#include <stdio.h>
#include <string.h>

int main()
{
    char ch1[10] = { 0 };
    char ch2[10] = { 0 };
    scanf("%s", ch1);
    getchar();
    scanf("%s", ch2);
    if (strcmp(ch1, ch2) == 0)
    {
        printf("same\n");
    }
    else
    {
        printf("different\n");
    }
    return 0;
}